package com.gillion.business.model;

import com.gfa4j.mybatis.model.BaseExample;
import java.util.ArrayList;
import java.util.List;

public class SysAclColumnExample extends BaseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysAclColumnExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAclColumnIdIsNull() {
            addCriterion("ACL_COLUMN_ID is null");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdIsNotNull() {
            addCriterion("ACL_COLUMN_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdEqualTo(String value) {
            addCriterion("ACL_COLUMN_ID =", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdNotEqualTo(String value) {
            addCriterion("ACL_COLUMN_ID <>", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdGreaterThan(String value) {
            addCriterion("ACL_COLUMN_ID >", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdGreaterThanOrEqualTo(String value) {
            addCriterion("ACL_COLUMN_ID >=", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdLessThan(String value) {
            addCriterion("ACL_COLUMN_ID <", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdLessThanOrEqualTo(String value) {
            addCriterion("ACL_COLUMN_ID <=", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdLike(String value) {
            addCriterion("ACL_COLUMN_ID like", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdNotLike(String value) {
            addCriterion("ACL_COLUMN_ID not like", value, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdIn(List<String> values) {
            addCriterion("ACL_COLUMN_ID in", values, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdNotIn(List<String> values) {
            addCriterion("ACL_COLUMN_ID not in", values, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdBetween(String value1, String value2) {
            addCriterion("ACL_COLUMN_ID between", value1, value2, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdNotBetween(String value1, String value2) {
            addCriterion("ACL_COLUMN_ID not between", value1, value2, "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdIsNull() {
            addCriterion("ACL_TABLE_ID is null");
            return (Criteria) this;
        }

        public Criteria andAclTableIdIsNotNull() {
            addCriterion("ACL_TABLE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAclTableIdEqualTo(String value) {
            addCriterion("ACL_TABLE_ID =", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotEqualTo(String value) {
            addCriterion("ACL_TABLE_ID <>", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdGreaterThan(String value) {
            addCriterion("ACL_TABLE_ID >", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdGreaterThanOrEqualTo(String value) {
            addCriterion("ACL_TABLE_ID >=", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLessThan(String value) {
            addCriterion("ACL_TABLE_ID <", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLessThanOrEqualTo(String value) {
            addCriterion("ACL_TABLE_ID <=", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLike(String value) {
            addCriterion("ACL_TABLE_ID like", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotLike(String value) {
            addCriterion("ACL_TABLE_ID not like", value, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdIn(List<String> values) {
            addCriterion("ACL_TABLE_ID in", values, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotIn(List<String> values) {
            addCriterion("ACL_TABLE_ID not in", values, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdBetween(String value1, String value2) {
            addCriterion("ACL_TABLE_ID between", value1, value2, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdNotBetween(String value1, String value2) {
            addCriterion("ACL_TABLE_ID not between", value1, value2, "aclTableId");
            return (Criteria) this;
        }

        public Criteria andDataTypeIsNull() {
            addCriterion("DATA_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andDataTypeIsNotNull() {
            addCriterion("DATA_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andDataTypeEqualTo(String value) {
            addCriterion("DATA_TYPE =", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeNotEqualTo(String value) {
            addCriterion("DATA_TYPE <>", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeGreaterThan(String value) {
            addCriterion("DATA_TYPE >", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeGreaterThanOrEqualTo(String value) {
            addCriterion("DATA_TYPE >=", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeLessThan(String value) {
            addCriterion("DATA_TYPE <", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeLessThanOrEqualTo(String value) {
            addCriterion("DATA_TYPE <=", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeLike(String value) {
            addCriterion("DATA_TYPE like", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeNotLike(String value) {
            addCriterion("DATA_TYPE not like", value, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeIn(List<String> values) {
            addCriterion("DATA_TYPE in", values, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeNotIn(List<String> values) {
            addCriterion("DATA_TYPE not in", values, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeBetween(String value1, String value2) {
            addCriterion("DATA_TYPE between", value1, value2, "dataType");
            return (Criteria) this;
        }

        public Criteria andDataTypeNotBetween(String value1, String value2) {
            addCriterion("DATA_TYPE not between", value1, value2, "dataType");
            return (Criteria) this;
        }

        public Criteria andColumnNameIsNull() {
            addCriterion("COLUMN_NAME is null");
            return (Criteria) this;
        }

        public Criteria andColumnNameIsNotNull() {
            addCriterion("COLUMN_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andColumnNameEqualTo(String value) {
            addCriterion("COLUMN_NAME =", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotEqualTo(String value) {
            addCriterion("COLUMN_NAME <>", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameGreaterThan(String value) {
            addCriterion("COLUMN_NAME >", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameGreaterThanOrEqualTo(String value) {
            addCriterion("COLUMN_NAME >=", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameLessThan(String value) {
            addCriterion("COLUMN_NAME <", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameLessThanOrEqualTo(String value) {
            addCriterion("COLUMN_NAME <=", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameLike(String value) {
            addCriterion("COLUMN_NAME like", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotLike(String value) {
            addCriterion("COLUMN_NAME not like", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameIn(List<String> values) {
            addCriterion("COLUMN_NAME in", values, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotIn(List<String> values) {
            addCriterion("COLUMN_NAME not in", values, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameBetween(String value1, String value2) {
            addCriterion("COLUMN_NAME between", value1, value2, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotBetween(String value1, String value2) {
            addCriterion("COLUMN_NAME not between", value1, value2, "columnName");
            return (Criteria) this;
        }

        public Criteria andAclColumnIdLikeInsensitive(String value) {
            addCriterion("upper(ACL_COLUMN_ID) like", value.toUpperCase(), "aclColumnId");
            return (Criteria) this;
        }

        public Criteria andAclTableIdLikeInsensitive(String value) {
            addCriterion("upper(ACL_TABLE_ID) like", value.toUpperCase(), "aclTableId");
            return (Criteria) this;
        }

        public Criteria andDataTypeLikeInsensitive(String value) {
            addCriterion("upper(DATA_TYPE) like", value.toUpperCase(), "dataType");
            return (Criteria) this;
        }

        public Criteria andColumnNameLikeInsensitive(String value) {
            addCriterion("upper(COLUMN_NAME) like", value.toUpperCase(), "columnName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}